package com.mfdm.gui.utils;

import org.eclipse.core.runtime.FileLocator;
import org.eclipse.core.runtime.Path;
import org.eclipse.jface.resource.ImageDescriptor;

import com.mfdm.gui.Activator;

public class ResourcesUtils {

	public static ImageDescriptor getImage(String resourcePath) {
		return ImageDescriptor.createFromURL(FileLocator.find(Activator.getDefault()
					.getBundle(), new Path(resourcePath), null));	

	}
}
